-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ROCm] Add initial ROCm PJRT support #7896
base: master
Are you sure you want to change the base?
Conversation
Hi @will-cromar , could you please review? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible for you to move the plugin to your own repository? The packages in this repository are the ones that we (ie the PyTorch/XLA team) test, release, and maintain ourselves. Additional device support should be maintained out of tree.
You should be able to build the actual plugin directly from OpenXLA without having to create your own bazel workspace (something like bazel build --config=rocm //xla/pjrt/c:pjrt_c_api_gpu_plugin.so
). Most of the mess of bazel build config in this repository supports the main torch_xla
package build and won't be relevant for the plugin.
The Python parts of the package all look right to me.
We can accept the change in __init__.py
since ROCm is a special case. We can also include a link to your plugin in our README.
Thanks for the feedback! I will have to further discuss with my team about setting up our own repository, and will reach back once it is up. :) |
6b79b39
to
dc18745
Compare
The plugin is using the same PJRT C API implementation as CUDA (just configured for ROCm) - https://github.com/openxla/xla/blob/main/xla/pjrt/c/pjrt_c_api_gpu_internal.cc